<?php

/**
 * toppage actions.
 *
 * @package    indep-market.com
 * @subpackage toppage
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
 */
class toppageActions extends sfActions
{
    /**
     * Executes index action
     *
     */
    public function executeIndex()
    {
        $c = new Criteria();
        $c->addDescendingOrderByColumn(RecordPeer::CREATED_AT);
        $records = RecordPeer::doSelect($c);

         $this->records = array();
       $i = 0;
       $c = 0;
       foreach($records as $v){
           $this->records[$i][$c] = $v;
       $c++;
       if($c == 3){
           $c =0;
           $i++;
       }
       }


        return sfView::SUCCESS;
    }


}
